home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Online / DaytimeDemo / sprintf.asm < prev    next >
Encoding:
Assembly Source File  |  2001-04-08  |  398 b   |  24 lines

  1. ; This function is taken from the exec/RawDoFmt() autodoc
  2. ;
  3. ; Simple version of the ANSI-C "vsprintf" function.
  4.  
  5.     XDEF    _SPrintF
  6.     
  7. _SPrintF:
  8.     move.l    a2,-(sp)
  9.     lea.l        stuffChar(pc),a2
  10.  
  11.     move.l    4.w,a6            ;Get SysBase
  12.     jsr        -$20a(a6)        ;RawDoFmt()
  13.  
  14.     move.l    (sp)+,a2
  15.     rts
  16.  
  17. ;------ PutChProc function used by RawDoFmt -----------
  18. stuffChar:
  19.     move.b   d0,(a3)+        ;Put data to output string
  20.     rts
  21.  
  22.     END
  23.  
  24.